package com.kscrm.web.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.kscrm.web.mapper.ClientExpertMapper;
import com.kscrm.web.domain.ClientExpert;
import com.kscrm.web.service.IClientExpertService;

/**
 * 专家的客户关联Service业务层处理
 * 
 * @author Dhq
 * @date 2025-05-12
 */
@Service
public class ClientExpertServiceImpl implements IClientExpertService 
{
    @Autowired
    private ClientExpertMapper clientExpertMapper;

    /**
     * 查询专家的客户关联
     * 
     * @param expertId 专家的客户关联主键
     * @return 专家的客户关联
     */
    @Override
    public ClientExpert selectClientExpertByExpertId(Long expertId)
    {
        return clientExpertMapper.selectClientExpertByExpertId(expertId);
    }

    /**
     * 查询专家的客户关联列表
     * 
     * @param clientExpert 专家的客户关联
     * @return 专家的客户关联
     */
    @Override
    public List<ClientExpert> selectClientExpertList(ClientExpert clientExpert)
    {
        return clientExpertMapper.selectClientExpertList(clientExpert);
    }

    /**
     * 新增专家的客户关联
     * 
     * @param clientExpert 专家的客户关联
     * @return 结果
     */
    @Override
    public int insertClientExpert(ClientExpert clientExpert)
    {
        return clientExpertMapper.insertClientExpert(clientExpert);
    }

    /**
     * 修改专家的客户关联
     * 
     * @param clientExpert 专家的客户关联
     * @return 结果
     */
    @Override
    public int updateClientExpert(ClientExpert clientExpert)
    {
        return clientExpertMapper.updateClientExpert(clientExpert);
    }

    /**
     * 批量删除专家的客户关联
     * 
     * @param expertIds 需要删除的专家的客户关联主键
     * @return 结果
     */
    @Override
    public int deleteClientExpertByExpertIds(Long[] expertIds)
    {
        return clientExpertMapper.deleteClientExpertByExpertIds(expertIds);
    }

    /**
     * 删除专家的客户关联信息
     * 
     * @param expertId 专家的客户关联主键
     * @return 结果
     */
    @Override
    public int deleteClientExpertByExpertId(Long expertId)
    {
        return clientExpertMapper.deleteClientExpertByExpertId(expertId);
    }
}
